<?php
    ini_set('display_errors','On');
    error_reporting(E_ALL);
   //Connecting to Redis server on localhost
   $redis = new Redis();
   $redis->connect('192.168.113.141',6379,20);
   echo "Connection to server sucessfully";
   $redis->set('test','hello andy');
   echo $redis->get('test');
   //check whether server is running or not
   echo "Server is running: "+ $redis->ping();
  
?>
